Skip to content

fix/remove deprecated listheaders dependency#15

Merged
TDannhauer merged 3 commits intoFRAMEWORK_6_0from
fix/remove-deprecated-listheaders-dependency
Apr 9, 2026
Merged

fix/remove deprecated listheaders dependency#15
TDannhauer merged 3 commits intoFRAMEWORK_6_0from
fix/remove-deprecated-listheaders-dependency

Conversation

@ralflang
Copy link
Copy Markdown
Member

@ralflang ralflang commented Apr 8, 2026

This class contained methods marked as deprecated since 2014 and used in only 3 places all over the code base.
The UPGRADING guide had instructions to migrate off them but some last callers remained.
These callers have since been patched.

This commit deletes both the actual "Deprecated" class and the fallback code which called into it.

Michael intended the Mime_Headers class to be lightweight and low level, having higher level API in separate classes.
The Deprecated class was also the only reason why Mime had a hard dependency on ListHeaders.
ListHeaders in turn had a much more reasonable dependency on Mime.
This circular dependency created some problems with composer.

ralflang added 3 commits April 8, 2026 16:55
This class contained methods marked as deprecated since 2014 and used in only 3 places all over the code base.
The UPGRADING guide had instructions to migrate off them but some last callers remained.
These callers have since been patched.

This commit deletes both the actual "Deprecated" class and the fallback code which called into it.

Michael intended the Mime_Headers class to be lightweight and low level, having higher level API in separate classes.
The Deprecated class was also the only reason why Mime had a hard dependency on ListHeaders.
ListHeaders in turn had a much more reasonable dependency on Mime.
This circular dependency created some problems with composer.
@ralflang ralflang requested a review from TDannhauer April 8, 2026 15:01
Copy link
Copy Markdown
Contributor

@TDannhauer TDannhauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me

@TDannhauer TDannhauer merged commit f65b673 into FRAMEWORK_6_0 Apr 9, 2026
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants